-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a review widget #371
Add a review widget #371
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #371 +/- ##
==========================================
+ Coverage 77.66% 78.44% +0.78%
==========================================
Files 27 27
Lines 3626 3758 +132
==========================================
+ Hits 2816 2948 +132
Misses 810 810 ☔ View full report in Codecov by Sentry. |
78a663c
to
0925b09
Compare
b29a412
to
bb66aba
Compare
Note: the linting failure is because |
5ac48ec
to
d427bfd
Compare
Handle StrEnum for Python 3.10 Add some explanation to ReviewSettings docstring
The test was not testing the code branch I thought because of a change in the logic in ChooseOrMakeNew.
Rename notebooks to remove spaces
This code is necessary for now because of a bug in ipyautoui, feder-observatory#323 Refactor handling of FileChooser bug Again! This fix is much more sensible than the last one, though, and will require just removing a few lines of code in one place (views.py) once the bug is fixed.
Remove debugging print
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have reviewed the code, only typos caught and a few clarifications sought. Will test out the notebooks later and report on that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have reviewed the code, only typos caught and a few clarifications sought. Will test out the notebooks later and report on that.
This might be better as a new issue than as something to do for this PR to get merged... I used the review widget, I noticed that while we got an indication the whole model was bad, there was no way to find out WHY the model was bad. I purposely mis-entered the units for one entry and there was no clear indication that was the problem. From what I understand of ipyautoui, we are suppressing the actual validation error message (which makes sense). But would it be possible to have a way of displaying the validation error if the user so chooses? Or if you want to get clever you could parse the error message and visually flag the individual bad entries, although that seems like a lot more hard work. |
All the following tests were done in Jupyter Lab, I did test a little with VS Code and it seems consistent except some of the drop downs do NOT render properly. That might be an issue with how iPyAutoui creates its custom widgets... Other glitches I noticed:
|
Co-authored-by: Juan Cabanela <[email protected]>
Reviewing this is on my to-do list for tonight. Just FYI @mwcraig |
Can you double check? The last option is still
Same here, I'm seeing
More a design feature, though maybe it ends up being confusing. Each dropdown has three options. The set of first options are consistent with each other, the set of second options are consistent and the set of third options are consistent. However, there is no updating of the suggestions as fields are filled out. That could maybe be added iun the future... |
This is because by default ipyautoui makes an In addition, the dropdowns are only shown if there is no text in the box. You can see the same behavior in the ipywidgets documentation I linked to above. |
Ah, that is because the AAVSO effectively has its own passsband map which maps Will open a separate issue for this. |
1 similar comment
Ah, that is because the AAVSO effectively has its own passsband map which maps Will open a separate issue for this. |
This is essentially the idea in: maxfordham/ipyautoui#308 For now, can you open an issue in this repo, @JuanCab, to add an option to display the errors, maybe by clicking on the red |
|
Ooooohhhhh, for a moment I was an old man shaking his fist in the sky in frustration that something was broken, but now I think I know what is going on. What I said before was not quite right:
What is displayed in the combobox is only the options consistent with the text entered so far, so when I'm not sure what to do about this.... |
I am starting to review this and just had a quick question. Do we need to provide an input box for the focal length of the system being used? I know we have our FL in the FITS header but does the "Sky" coordinate system, which I assume is WCS, need a focal length to plate solve the images? |
I don't think so -- the FL can be calculated from some of the parameters that the plate solve generates. I think it could also be used as an input, but we haven't done it that way. I gather, though, that that is something you need to provide as an input for your plate solves? |
Yeah, from my experience using Pixinsight and ASTAP (standalone platesolver) they need a focal length. It doenst need to be exact but as long as it is within putting distance of the actual FL it works. |
I think we don't need that here because I've been assuming images are already plate solved.... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was not able to break these :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, two typo suggestions made, but otherwise, good to go.
Co-authored-by: Juan Cabanela <[email protected]>
Merging once tests pass 😬 🎉 |
This pull request adds what will be the first of the new photometry notebooks (setting camera, observatory, passband map) and the final review-of-settings notebook.
Remaining to be done:
ReviewSettings
Fixes #377 which was uncovered during development of this new widget.
Fixes #182 -- the notebooks were not combined but things have been streamlined a bit.